import { observable, action } from "mobx";
import request from "../utils/request";
import * as api from "../api/api";
import { LoadHoc, loading } from '../hoc/loadHoc';

// 企业信用中心
export default class BusinessStandingsStore extends LoadHoc {
  /**
   * 数据保存
   */
  @loading @action async saveStandingInfo(params: {
    form,
    callback?: (res) => void;
  }) {
    const { form, callback } = params;
    const res = await request(api.AppbusinessStandingsApiFetchParamCreactor.appbusinessStandingsSaveStandingInfosAsync({
      form
    }));
    callback&&callback(res);
  }
}
